import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
const state = {
    position:"滦州市"
}
const mutation = {
    setPosition(state,val){
        state.position = val
    }
}
const action = {
    setPosition({commit},val){
        commite('setPosition',val)
    }
}
export default new Vuex.Store({
    state,
    mutation,
    action
})